package tech.aistar.service.impl.dynamic;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.dynamic.PrisePic;
import tech.aistar.mapper.IPrisePicMapper;
import tech.aistar.service.IPrisePicService;

/**
 * @author Ace
 * @version 1.0
 * @descriiption:本类用来演示:
 * @date 2019/10/14 0014.
 */
@Service
public class PrisePicServiceImpl implements IPrisePicService {
    @Autowired
    private IPrisePicMapper prisePicMapper;
    @Override
    public PrisePic findByPidByUid(Integer pid, Integer uid) {
        return prisePicMapper.findByPidByUid(pid,uid);
    }

    @Override
    public void insertAll(PrisePic prisePic) {
        prisePicMapper.insertAll(prisePic);
    }

    @Override
    public void delByPidByUid(Integer pid, Integer uid) {
        prisePicMapper.delByPidByUid(pid,uid);
    }
}
